<template>
  <div id="app">
    <div class="header_wrap">
      <router-link to="/">Home</router-link> |
      <router-link to="/about">About</router-link>
    </div>
    <div class="main_wrap">
      <div class="nav_wrap">
        左侧导航
      </div>
      <router-view class="content_wrap"/>
    </div>
  </div>
</template>

<style lang="less">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

.header_wrap {
  padding: 30px;
  border: 1px solid #eee;

  a {
    font-weight: bold;
    color: #2c3e50;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
}
.main_wrap {
  display: flex;
  .nav_wrap {
    width: 150px;
    padding: 24px;
    border: 1px solid #eee;
  }
  .content_wrap {
    width: 100%;
    padding: 24px;
  }
}
</style>
